package com.bins.knowledge.point.netty;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;

public class SimpleServerHandler extends ChannelInboundHandlerAdapter {
    @Override
    public void channelRead(ChannelHandlerContext ctx, Object msg) { // (2)
        System.out.println("Server received: " + msg); // (3)
        ctx.writeAndFlush("Hello " + msg + "\r\n"); // (4)
    }
}
